package com.yellow.orderservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yellow.orderservice.entity.Order;

import java.util.List;

public interface OrderService extends IService<Order> {
    List<Order> selectOrderListByUserId(Integer userId);

    List<Order> selectAllOrders();

    String getCourierNameByOrderId(Integer orderId);

    void grabOrder(int orderId,String courierName);

    void insertOrder(Order order);

    Long countOrders();

    Order findByOrderId(Integer orderId);

    void insertCustomerOrders(Integer customerId, Integer orderId,Long id);

    Integer countCustomerOrders();

    void incrementOrderViewCount(String orderId);

    int getOrderViewCount(String orderId);
}
